package yf.mall.service;

import yf.mall.entity.MallStoreEntity;
import com.yf.service.BaseService;
import yf.mall.vo.MallStoreVo;
import yf.mall.vo.StoreTypeVo;

import java.util.List;

/**
 * 产品库存Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Sun Sep 29 09:50:50 CST 2019
 */
public interface MallStoreService extends BaseService<MallStoreEntity> {




    /***********BACK***********/


//    List<MallStoreVo> queryListVo(MallStoreVo mallStoreVo);
//
//    MallStoreVo getVo(Long id);

    List<MallStoreVo> findByUserId(Long userId);

    List<StoreTypeVo> storeType(Long userId);

    //增加库存
    MallStoreEntity increase(Long userId, Long goodsId, Integer quantity);

    //减少库存
    MallStoreEntity decrease(Long userId, Long goodsId, Integer quantity);

    //退回自己发货出去的
    void backDelivery(String orderNo);

    //退回补货的
  //  void backCod(String orderNo);

    //取消订单处理自动购买的
    // void backAutoBuy(String orderNo);

    //执行转货
    void transfer(Long orderId);


    /***********API***********/



}
